package org.thanos.demo.core.dao;

import org.thanos.demo.core.entity.ConfigProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Validated
public interface ConfigPropertiesDao {

    int insert(@Valid ConfigProperties configProperties);

    int updateById(ConfigProperties configProperties);

    List<ConfigProperties> queryAll();

    List<ConfigProperties> queryOneProfile(@Valid @NotBlank String application, @Valid @NotBlank String profile, @Valid @NotBlank String label);

    int delete(@Valid @NotNull Long id);
}
